<template>
  <router-view v-slot="{ Component }">
    <Transition name="fade" mode="out-in">
      <keep-alive exclude="login">
        <component :is="Component" />
      </keep-alive>
    </Transition>
  </router-view>
  <!-- 悬挂ICP -->
  <div class="icp">
    <a href="https://beian.miit.gov.cn/"> 备案号: 湘ICP备2023007167号-1 </a>
  </div>
</template>

<script setup></script>

<style lang="scss" scoped>
.fade-enter-from,
.fade-leave-to {
  /*定义进入开始和离开结束的透明度为0*/
  opacity: 0;
}

.fade-leave-to {
  transform: translateX(20px);
}
.fade-enter-to {
  transform: translateX(0px);
}

.fade-enter-to,
.fade-leave-from {
  /*定义进入结束和离开开始的透明度为1*/
  opacity: 1;
}
.fade-leave-active,
.fade-enter-active {
  transition: all 0.4s ease-out;
}

// icp
.icp {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  line-height: 30px;
  text-align: center;
}
</style>
